package com.hj.demo;

public class Test {
    public static void main(String[] args) {
        meth.aVoid(new Dog());
        meth.aVoid(new Cat());

    }
}
    class meth {
        public static void aVoid(Animal animal) {
            animal.eat();
        }
    }

// 多态
//